package com.rest.response;

import java.io.Serializable;
import java.util.List;

import jz.joyoung.robot.util.UtilString;

/**
 * Created by HP on 2020/2/26.
 */

public class Doctor implements Serializable {
    public String docName;
    public String id;
    public String deptName;
    public String jobTitleName;
    public String fee;
    public String docGoodAtNames;
    public String num;
    public String name;
    public String score;
    public String thumbnailUrl;
    public String introduction;
    public String hospitalName;
    //处方权限1：有0：无
    public int isPrescription;
    //是否推荐0不是1推荐
    public String isRecommend;
    //是否可预约1：有号0：已约满
    public int isSchedule;
    public String deptId;
    public int diagType;
    public int bucket;

    public String evaluate;
    public int consultCount;
    public String doctorId;
    public String doctorPicture;


    public String getId() {
        return id != null ? id : doctorId;
    }
    public  String getEvaluate(){
       return !UtilString.isEmpty(evaluate) ? evaluate : "0.00";
    }

    public String getNumWithconsult(){
        return  String.format("%d",consultCount);
    }
    public  String getScore(){
        return score != null ? score : evaluate;
    }

    public  String getThumbnailUrl(){
        return thumbnailUrl != null ? thumbnailUrl : doctorPicture;
    }
    //云门诊排班信息
    public List<Schedule> scheduleInfoDtoList;
    //门诊挂号排班信息
    public List<GeneralSchedule> generalScheduleList;
    //医生所在团队
    public List<TeamDetailResponse> doctorTeamListDto;

    public class Schedule implements Serializable {
        public String scheduleTime;
        public String regFee;
        public String dateTime;
        public String deptId;
        public String deptName;
        public int isSchedule;
        public String scheduledata;
        public String timeInterval;
    }

    public class GeneralSchedule implements Serializable {
        public String scheduleTime;
        public String regFee;
        public String dateTime;
        public int isSchedule;
        public String deptId;
        public String deptName;
        public String scheduledata;
        public String timeInterval;
    }
}


